package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class LaoWang {
    private String name;
    private String addr;
    private String yourWife;
    private LaoWang hisSon;
    private Boolean aBoolean;

    public String getYourWife() {
        if (hisSon.name.equals("nextDoor")) {
            return "green";
        } else {
            return "black";
        }
    }
}
